package com.ruoyi.system.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class TST {
    private Long id;
    private String name;
    private BigDecimal money;
    private List<TST> children;
    private BigDecimal month1=BigDecimal.valueOf(0);
    private BigDecimal month2=BigDecimal.valueOf(0);
    private BigDecimal month3=BigDecimal.valueOf(0);
    private BigDecimal month4=BigDecimal.valueOf(0);
    private BigDecimal month5=BigDecimal.valueOf(0);
    private BigDecimal month6=BigDecimal.valueOf(0);
    private BigDecimal month7=BigDecimal.valueOf(0);
    private BigDecimal month8=BigDecimal.valueOf(0);
    private BigDecimal month9=BigDecimal.valueOf(0);
    private BigDecimal month10=BigDecimal.valueOf(0);
    private BigDecimal month11=BigDecimal.valueOf(0);
    private BigDecimal month12=BigDecimal.valueOf(0);

    public  void childrenList(List<TST> children){
        this.children.addAll(children);
    }
}
